#!/usr/bin/python

import os,sys
import datetime

os.system("git add -f ./*")
mes=raw_input("the log message you want to input\n\n\n")
if not mes:
	mes="every thing ok"
mes.join(str(datetime.datetime.now()) )
mes+=("\"")
message=("\"")+mes
mes=message
print mes

try:
	os.system("git commit -m %s " % mes) 
except:
		print 'git commit failed'
		sys.exit()

while(1):
	try:
		os.system("git push origin master") 
		break
	except:
			print "git push faild, try again"
			pass
		
print 'susscess'

